class CarListModel {
  int retcode;
  int errcode;
  String message;
  _Data data;

  CarListModel({this.retcode, this.errcode, this.message, this.data});

  CarListModel.fromJson(Map<String, dynamic> json) {
    retcode = json['retcode'];
    errcode = json['errcode'];
    message = json['message'];
    data = json['data'] != null ? new _Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['retcode'] = this.retcode;
    data['errcode'] = this.errcode;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class _Data {
  List<Car> list;
  int count;

  _Data({this.list, this.count});

  _Data.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = new List<Car>();
      json['list'].forEach((v) {
        list.add(new Car.fromJson(v));
      });
    }
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    data['count'] = this.count;
    return data;
  }
}

class Car {
  int vehId;
  String vehNo;
  String vehicleBrand;
  String vehicleModel;
  String vehRentStatus;
  String vehVerifyState;
  int vehicleSeatNum;
  String priceUnit;
  String userName;
  String mobileAccount;
  int missionDeviceStatus;
  String stewardUserName;
  String stewardMobilePhone;
  int stewardComCode;
  String stewardComName;
  String stewardComId;
  int finishOrderCount;
  int isBindingSteward;
  int insuranceOrDrivingExpire;

  Car(
      {this.vehId,
      this.vehNo,
      this.vehicleBrand,
      this.vehicleModel,
      this.vehRentStatus,
      this.vehVerifyState,
      this.vehicleSeatNum,
      this.priceUnit,
      this.userName,
      this.mobileAccount,
      this.missionDeviceStatus,
      this.stewardUserName,
      this.stewardMobilePhone,
      this.stewardComCode,
      this.stewardComName,
      this.stewardComId,
      this.finishOrderCount,
      this.isBindingSteward,
      this.insuranceOrDrivingExpire});

  Car.fromJson(Map<String, dynamic> json) {
    vehId = json['vehId'];
    vehNo = json['vehNo'];
    vehicleBrand = json['vehicleBrand'];
    vehicleModel = json['vehicleModel'];
    vehRentStatus = json['vehRentStatus'];
    vehVerifyState = json['vehVerifyState'];
    vehicleSeatNum = json['vehicleSeatNum'];
    priceUnit = json['priceUnit'];
    userName = json['userName'];
    mobileAccount = json['mobileAccount'];
    missionDeviceStatus = json['missionDeviceStatus'];
    stewardUserName = json['stewardUserName'];
    stewardMobilePhone = json['stewardMobilePhone'];
    stewardComCode = json['stewardComCode'];
    stewardComName = json['stewardComName'];
    stewardComId = json['stewardComId'];
    finishOrderCount = json['finishOrderCount'];
    isBindingSteward = json['isBindingSteward'];
    insuranceOrDrivingExpire = json['insuranceOrDrivingExpire'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['vehId'] = this.vehId;
    data['vehNo'] = this.vehNo;
    data['vehicleBrand'] = this.vehicleBrand;
    data['vehicleModel'] = this.vehicleModel;
    data['vehRentStatus'] = this.vehRentStatus;
    data['vehVerifyState'] = this.vehVerifyState;
    data['vehicleSeatNum'] = this.vehicleSeatNum;
    data['priceUnit'] = this.priceUnit;
    data['userName'] = this.userName;
    data['mobileAccount'] = this.mobileAccount;
    data['missionDeviceStatus'] = this.missionDeviceStatus;
    data['stewardUserName'] = this.stewardUserName;
    data['stewardMobilePhone'] = this.stewardMobilePhone;
    data['stewardComCode'] = this.stewardComCode;
    data['stewardComName'] = this.stewardComName;
    data['stewardComId'] = this.stewardComId;
    data['finishOrderCount'] = this.finishOrderCount;
    data['isBindingSteward'] = this.isBindingSteward;
    data['insuranceOrDrivingExpire'] = this.insuranceOrDrivingExpire;
    return data;
  }
}